<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'UserInsert.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" href="css/style.css" type="text/css"></link>
	</head>

	<body>
		<center>
			<div id="top">
				<%@ include file="top.jsp"%>
			</div>
			<div id="center">
				<div id="centerleft">
					<img src="image/1-home_07.gif" border="0" />
					<div id="menulist">
						<!--功能菜单开始-->
						<%@ include file="User_left.jsp"%>
						<!--功能菜单结束-->
					</div>
					<img src="image/1-home_02.gif" border="0" id="i2" />
				</div>
				<div id="centerright">
					<div id="guide">
						<s:text name="guideResiter"/>
					</div>
					<div id="main">
						<!--功能开始-->
						<s:form action="InsertUser_insertInfo" method="post">
							<table>
								<caption>
									<s:text name="titleRegister"/>
								</caption>
								<tr>
									<td>
										<s:text name="name"/>:
									</td>
									<td>
										<s:textfield name="user.userName"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userName</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="pwd"/>:
									</td>
									<td>
										<s:password name="user.userPwd" />
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userPwd</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="pwd2"/>:
									</td>
									<td>
										<s:password name="userRPwd" />
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userRpwd</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="sex"/>:
									</td>
									<td>
										<s:radio list="{getText('man'),getText('woman')}" name="user.userSex" value="getText('man')"></s:radio>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userSex</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="age"/>:
									</td>
									<td>
										<s:textfield name="user.userAge"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userAge</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="realName"/>:
									</td>
									<td>
										<s:textfield name="user.userRealName"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userRealName</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="tel"/>:
									</td>
									<td>
										<s:textfield name="user.userTel"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userTel</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="address"/>:
									</td>
									<td>
										<s:textfield name="user.userPlace"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userPlace</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="mail"/>:
									</td>
									<td>
										<s:textfield name="user.userEmail"></s:textfield>
									</td>
									<td>
										<font color="red"><s:fielderror cssStyle="color:red">
												<s:param>user.userEmail</s:param>
											</s:fielderror>
										</font>
									</td>
								</tr>
								<tr>
									<td>
										<s:submit key="submit"/>
									</td>
									<td>
										<s:submit key="reset"/>
									</td>
								</tr>
							</table>
						</s:form>
						<div align="center"></div>
					</div>
				</div>
				<div style="clear: both"></div>
			</div>
		</center>
	</body>
</html>
